package com.ruoyi.project.agreement.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class AgreementInfo extends BaseEntity {
    private String id;
    private String customId;
    @Excel(name = "店铺名称", width = 30, align = Excel.Align.LEFT)
    private String cusName;
    private String aliww;
    @Excel(name = "签约类型", readConverterExp = "1=新签,2=续费,3=断约续签,4=转介绍,5=同客户不同店")
    private String type;
    @Excel(name = "服务类型", readConverterExp = "1=整店项目,2=单车项目")
    private String fwlx;
    // 到账金额
    @Excel(name = "到账金额", align = Excel.Align.RIGHT)
    private BigDecimal money;
    @Excel(name = "开始日期", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;
    private int serviceDays;
    @Excel(name = "结束日期", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    //合同状态（0=未审核，1=已审核，2=已作废）
    @Excel(name = "合同状态", readConverterExp = "0=未审核,1=已审核")
    private String status;
    // 合同异常原因（如：删除、作废等）
    private String reason;
    private String remark;
    private Date endDate1;
    private Date endDate2;

    // 录入人名称
    @Excel(name = "录入人")
    private String createName;

    @Excel(name = "录入时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
